package com.boil.qz.safekavass.web.request.param;

import com.boil.util.Constants;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;

/**
 * Created by ChenYong on 2017-04-13.
 * <br>
 * 学习人列表的请求参数。
 */
public class LearnPersonListParam extends Page2Param {
    /**
     * 学习日期的字符串
     */
    @Pattern(regexp = Constants.DATE_1_EMPTY_RE, message = ("学习" + Constants.DATE_RE_MSG))
    protected String learnDate;
    /**
     * 学习人姓名
     */
    @Length(min = Constants.VALUE_0, max = Constants.VALUE_50, message = "学习人姓名的长度在0至50个字之间")
    private String learnPerson;

    /**
     * 默认构造器。
     */
    public LearnPersonListParam() {
        super();
    }

    public String getLearnDate() {
        return learnDate;
    }

    public void setLearnDate(String learnDate) {
        this.learnDate = learnDate;
    }

    public String getLearnPerson() {
        return learnPerson;
    }

    public void setLearnPerson(String learnPerson) {
        this.learnPerson = learnPerson;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("LearnPersonListParam{");
        sb.append("startDate='").append(startDate).append('\'');
        sb.append(", iDisplayStart=").append(iDisplayStart);
        sb.append(", learnDate='").append(learnDate).append('\'');
        sb.append(", endDate='").append(endDate).append('\'');
        sb.append(", sEcho=").append(sEcho);
        sb.append(", learnPerson='").append(learnPerson).append('\'');
        sb.append(", iDisplayLength=").append(iDisplayLength);
        sb.append(", iColumns=").append(iColumns);
        sb.append(", iSortingCols=").append(iSortingCols);
        sb.append('}');
        return sb.toString();
    }
}